#include <stdio.h>
void main()
{
	int x,y,z,count=0;
	printf("      MEN    WOMEN    CHILDREN\n");
	printf("------------------------------\n");
	for(x=0;x<=10;x++)
	{
		y=20-2*x;
		z=30-x-y;
		if(3*x+2*y+z==50)
			printf("%2d:     %2d     %2d       %2d\n",++count,x,y,z);
	}
}
